{include file="public/header" select="0" /}
<body>
<div class="header">
    <i class="layui-icon layui-icon-left" onclick="goBack()"></i> 编辑收货地址
</div>
<form action="{:url('address/save')}" method="post" class="form layui-form">
    <input type="hidden" name="id" value="{$info.id}"/>
    <ul class="upd-phone-list">
        <li>
            <p>收货人</p>
            <input type="text" name="nickname" lay-verify="required" lay-reqtext="请输入收货人"
                   placeholder="请输入收货人" value="{$info.nickname}" autocomplete="off">
        </li>
        <li>
            <p>手机号码</p>
            <input type="number" name="tel" lay-verify="required" lay-reqtext="请输入手机号码"
                   placeholder="请输入手机号码" value="{$info.tel}" autocomplete="off">
        </li>
        <li style="height: 10rem;">
            <p>所在地区</p>
            <div class="site-prov sunSelect" style="display: block;" data-url="{:url('address/getArea')}" data-value="code" data-name="title">
                <select name="province" data-name="请选择省" data-level="1" data-id="{$info.province}" lay-verify="required"
                        lay-reqtext="请选择省" lay-filter="sunSelect"></select>
                <select name="city" data-name="请选择市" data-level="2" data-id="{$info.city}" lay-verify="required"
                        lay-reqtext="请选择市" lay-filter="sunSelect"></select>
                <select name="district" data-name="请选择区/县" data-level="3" data-id="{$info.district}" lay-filter="sunSelect"></select>
            </div>
        </li>
        <li>
            <p>详细地址</p>
            <input type="text" name="details" lay-verify="required" lay-reqtext="请输入详细地址"
                   placeholder="请输入详细地址" value="{$info.details}" autocomplete="off">
        </li>
    </ul>
    <div class="address-default">设置为默认地址
        <input type="checkbox" name="default" value="1" lay-skin="switch" lay-text="是|否" {if $info.default == 1}checked{/if}>
    </div>
    <p class="save save-fixed" lay-submit lay-filter="save" formObj=".form">保存</p>
</form>
{include file="public/footer" select="0" /}
<script src="/static/admin/js/sunSelect.js"></script>
</body>
</html>